package net.hn.hnms.biz.project.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author 刘昊
 * @date 2024-03-11 16:53
 * 检查记录表
 */
@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper=false)
@Table(name = "check record", schema = "xmgl", catalog = "huaneng-manage")
public class CheckRecord extends BaseModel implements Serializable {

    @ApiModelProperty(value = "id")
    @TableId(type = IdType.ASSIGN_UUID)
    private String checkRecordId;

    @ApiModelProperty(value = "项目id")
    private String projectId;

//    @ApiModelProperty(value = "项目名称")
//    @TableField(updateStrategy= FieldStrategy.IGNORED)
//    private String projectName;

    @ApiModelProperty(value = "检查日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date checkDate;

    @ApiModelProperty(value = "检查标题")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String checkTitle;

    @ApiModelProperty(value = "检查人")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String examiner;

//    @ApiModelProperty(value = "施工单位")
//    @TableField(updateStrategy= FieldStrategy.IGNORED)
//    private String constructionUnit;

    @ApiModelProperty(value = "检查内容")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String checkContent;

    @ApiModelProperty(value = "检查结果")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String checkResult;

    @ApiModelProperty(value = "公司编码")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String companyCode;
}
